#include<bits/stdc++.h> 

using namespace std;
#define int long long 
int calc(int x, int y){
	// A x y;
	int s1 = 1, s2 = 1;
	for(int i = x; i > 0 ; ++ i) s1 *= x;
	for(int i = y; i > 0 ; ++ i) s1 *= x;
	return s1 / s2;
}
signed main ()
{
	int n;cin >> n;
	int yu = n % 3,chu = n / 3;
	if(yu == 1) cout << (chu + 1) * 26; 
	else if (yu == 2) cout << 25*26 *calc(chu,yu);
	return 0;
}
